js updates #1

imagesloaded dependency, and usage on packery. pulled out all functions into their own files and using browserify to build in order to make the code more clean. also adds configurability out of the modular functionality