optimize/clean up js
cleanup osx files
query optimization