[String] added fword and lword functions, they return the first or last word of the string
[JavaScript] adding class prototype
[View] use JavaScript class