added mobile check for js