Added special case for JavaScript files