Edited some javascript