simple javascript appliction