javascript code is now separated within an independent file