basic javascript structure