updated js files to use canvas renderer if browsers do not support it