ability cancelable and tidy

added variable in ui.js for holding the selected ability id, and
altered the onclick function to check if clicked icon is already
selected, if so deselect and cancel ability

also tidied up the variable name for ghosted_creature to ghostedCreature