cleaned up the sidescroller prototype js so that it can receive passed config. Will need an organizational refactor once behavior is finalized