Removed unused javascript functions

Also 
1. removed unused variable ($linkToID)
2. noticed that on chrome sometimes got FOUC on jQuery("#xxx-tabs").tabs initialisation so changed for "official" solution