Added js constants and basic html5 shimming