Just simple pieces of code in JS