Petrojs Javascript Library