Seprated common js code for coding exercises