All basic JS function implemented