Adding javascript code style