Front-end code script