pre-compile javascript