Main layout, JS boilerplate