Update skiddlefunctions.js

undefined fix