Started adding js functionality