dropped ender. swithced to jquery. now using stitchrb. things are good
fixed result, refactored calculations