Added PrintReceipt function to functions.js. Renamed files for convention and in accordance to instructions.