JS fixes

Should fix #40 on phone and tablet