fix for JS pre compilation.