formatting and documentating jquery