added some js modes