fix bug with js compilation path