Some bloat reduction

Introduced the new generic JS show advanced function where it would eliminate many functions that did the same thing.