Cleanup
Clean up JS code, cookie view as component