Removed AshJS and used `state` object to hold all state