modified the ngTable library in order to work with require if the library is not loaded by require but is loaded by head js