fixing javascript errors, changing package path