some fixes to assure js is loaded