Fix javascript template project compile fail.