added color function to fast.js file