docroot to js