Front end preparations js