added a define for the javascript directory
added wordpress 3.5 uploader functionality