moved face centers to arrays
added firefox support