adjustments in classes; moving functional triggers to data-attributes; cleanup of js code