Adding some useful JS scripts