Proper indentation and nesting will make it much easier to maintain. You should check out installing some sublime plugins that can do this automatically for you