Added js to createmapbox function