fixed js compile-time 'warnings'