Added javascript for puzzle tutorials