Bug fixes; required sex missing

Signed-off-by: Gaurav Munjal <Gaurav0@aol.com>
Do not stop running all javascript if image not found

Signed-off-by: Gaurav Munjal <Gaurav0@aol.com>
More bug fixes

Signed-off-by: Gaurav Munjal <Gaurav0@aol.com>