Can't add / edit new posts after updating to WordPress 3.5

I have just installed the new version of wp on my site , but now I cannot add new posts or edit older ones

Problem is, it wont allow me to select the visual editor. In addition, there is no formatting toolbar and media upload button doesn’t work. Seems that the coding is corrupted or something? Also the perma link editing doesn’t work either.

Any ideas how to fix this?