Javascript material basic