file encryption using javascript