Changed to compressed js lib; Removed unused code