js blocks added for better rendering