Removed undefined JS function. Closes #5