#21 - mv internal js to external file