convert jade to js