Compile javascript