This document provides 7 golden rules for introducing JavaScript to an embedded electronics project. The rules are: 1) JavaScript is not Java and has different fundamentals, 2) embrace diversity over standardized approaches, 3) start with processes as JavaScript impacts methodology, 4) regularly refactor and reorganize code to prevent spaghetti code, 5) introduce conventions for libraries, styles, and structures to avoid inconsistencies, 6) keep code simple, functional, and thin, and 7) be prepared for the short lifetimes of JavaScript libraries and flexible to change. An additional rule is to follow standards.