REF-1 #done rewritten in node webkit