add in proper socket javascripts