added 3 javascript tests