implement pushstate, remove directories from metadirectory, remove use of requestAnimationFrame