Make getJavascript compatible with PHP5.4
Make mimeContentType method compatible with PHP5.4