Fix: trailing comma bug with jquery>1.8.0 (for all effects); Clean whitespaces

Fix for all effects (see https://github.com/douglasmiranda/jquery.gridnav/commit/dbb7dc4f02c7dcfe8069a9bfcccad9a71619a62f).