Added randomSeed; fixed mouseX/Y undefined behaviour in Firefox

Added event.layerX/Y to the updateMouseCoords function.
Added randomSeed functionality.