Tests for smartphone/tablet in JS, some styling fixes for smartphone