Creating a basic javascript