Add support to dataTables 1.10, refactoring code and fix bugs