Updating styles and moving javascript