Check if is mobile

An easy way to check if is mobile with plain javascript