Add javascript base login redirect