Added javascript and fixed some minor bugs