adding semi colon and cleaning up tooltip js