Fixed errors in javascript, added button image