filter default package main to only js files

Some bower packages specify non-JavaScript `main` files. Before this commit, this plugin would add these to the require js config with a ".js" extension, which would cause errors later.