Clean up

fixed logic error on mobile detection scripts