filter out non-js files before loading them. added gitignore