Better mobile support

I was a bit bored tonight so I made some changes to get this working on mobile browsers cause I remembered @hone saying it didn't. Note: I didn't test this in FF... well, because I don't care.