Refactoring and optimizations (jQuery)
Fixed bug #24, Added toggle for dhcp