require js and formatting

updated requireJS plugin to new version.
cleaned up formatting of tern while copying changes to tern.ace.