Cleaning up JS references, doc references