Ordered code in code.js Main function calls Plot function