Fix z-order of widget, move all js into callback function, revert to python25