made javascript work on bracket and created bracket partial