exported js into extternal file
repaired menu onlick()