JS modules; moved graphs as well