Added JS platform to build
Misc SDL fixes until SDL 1.2 headers are fixed in emscripten
Fixed diffuse variable reference