Refactored code and moved JavaScript strings to localized script call
Added cron options to category deletion