Added general rules
Added var statements
Added jQuery elements