fixed some formatting, optimized code in scheduler_controller, handled 404 responses for improper searches, updated javascript to accept 404 responses, optimized utility js functions