main loop function now works with the requestAnimationFrame function for smoothness
changed the time functions to be in seconds since the application started, and added a frameTime function that gives the time the frame started for use within the main render loop function
added functions to determine audio support