Update script.js

added WIP function and removed IdToFill
Update script.js

corrected syntax error
Merge pull request #4 from outofmachina/calculate-functionality

Calculate functionality