Very much thanks to R0J0hound for the example I finally got some time to look at it break it apart and learn how it was done and tinker with it. This is the result so far =D
dl.dropbox.com/u/53012532/RaycastTest/index.html
Press F to do fullscreen
EDIT: New version up at the same link based on the 2nd example from R0J0hound
If it loads with the walls really low on the screen thats cause of rescaling the layout just reload it and it should be fine.
This one runs for me at 30 fps I can make it run at 60+ fps but it looks way worse