JavaScript Page Abstraction