Add .js extension to text/javascript

According to [RFC 4329, section 7.1](http://tools.ietf.org/html/rfc4329#section-7.1), `text/javascript` has the ext .js