compile core js