integrating code from jsbin