Fixed the wretche javascript stuff