Moved requires to top, fixed bug in ext-grid that would cause editor to error out after saving an image a few times