Added redirect for javascript