added getNonpagedCount url parameter
avoided stackoverflow by setting silent parameter of add method and always added models to colelction for now because of some serious problems has to be changed in future
build mcap js