some missing semicolons
add required class as well to help validator with dynamically loaded elements