Clean up indentation, bind to window resize instead of an interval