Added filemtime() to JS version