JS compile fix