Simplified JavaScript, removed unused JavaScript library