Improve dolist syntax, some PHPDocs and jQuerified