edited javascript, test #2