move bracket to its own js file