fix rake failed with js runtime library