Added '.js' as an accepted file suffix