refactors ground js