Add supporting javascript