Abstracted frontend scripts helper to class