moved all script to external files

also started working on competitions.html