add old file

old file that contains some js snippets