JavaScript Testing - Client and Server Side