test using javascript