move bracket to its own js file
fix some lint warnings