Cleaned up code. Removed jquery call.