Fix bugs history, remove old javascript