Trying out different methods of evaluating JS in browser