fix handle all extensions not just .js