How does JavaScript actually work under the hood in your browser