Added detect mobile js. Update read me and test file to demonstrate use with classes.