just added js and few bug fixes