revamped gapps menu js

huge clean up to the gapps menu code