making browse_everything gem javascript work

Sending Pull request to merge to branch feature/HYDRASIR-218-browse_everything since I dont have access.