separating js-graphics in other module