Package Filtering: Fixing some javascript bugs