added jquery framework
refactored to use jQuery