Only consider javascript files that ends with .js