fixed multiple play bug and clear button bug in application.js