Adding skeleton functions to js and populating one dot