Fix prepublish hook to compile to js