added ajax to render javascript for specific user to page