Beta version for filenames using javascript.