testing some basic functionality in javascript