refactored code, removed jquery