javascript for home dir