Adding basic JavaScript, yet to be commented