forgot to externalise javascript - Done