Basic Javascript Code