Added JavaScript commands and console.logs