Merged some javascript files to reduce redunancy.