Split JS into per-class files Cut parts of trweb class out Move init code from event handler to constructor