Added JQuery support and JQuery UI support

Added JQuery to handle UI and simplify code.