small changes to js window builder