Adding Javascript to generate basic lists