login script in separate js test 1