JS-validation performed, some style edits