only js redirect code