Testing javascript capabilities a bit