define checkAnim() before using it
remove js files from compiling
fixed #2084:add lua loader for all platforms